package com.hao.nettyrpc.transport;

import com.hao.nettyrpc.serializer.CommonSerializer;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/4/11 12:29
 */
public interface RpcServer {
    //默认序列化方式
    int DEFAULT_SERIALIZER = CommonSerializer.KRYO_SERIALIZER;

    void start();
    //讲服务注册到注册中心
    <T> void publishService(T service,String serviceClass);
}
